package com.example.datasourcetest.controller;

import com.example.datasourcetest.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {

    @Resource
    UserService userService;

    @GetMapping("/show")
    public String showinfo(){
        int i = userService.insertUser();
        return i+"";
    }
}
